<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@include file="/include.jsp"%>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/table.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="${ctx}/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
<table border="0" cellpadding="0" cellspacing="0" class="table_border">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0"
                   class="table_padding">
                <tr>
                    <td>
                        <table align="left">
                            <tr>
                               <!--  <td width="75px"><a class="button" href="detail.jsp"><span>欠费学生</span></a>
                                </td> -->
                               <!--  <td width="50px"><a class="button" href="add.jsp"><span>新增</span></a>
                                </td>
                                <td width="50px"><a class="button"
                                                    href="javascript:void(0);"><span>删除</span></a></td>
                                <td width="50px"><a class="button" href="edit.jsp"><span>修改</span></a>
                                </td> -->
                                <td width="100px"><input type="text" id="" placeholder="请按姓名查询"/></td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td width="100px"><input type="text" id="" placeholder="请按班级查询" /></td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td><a class="button"><span>查询</span></a>
                                 <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                                <td><a class="button"><span>取消</span></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="25" height="26" align="right"></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td align="center">
            <table border="0" cellpadding="0" cellspacing="0" id="box_num_table2"
                   class="box_num_table">
                <thead>
                <tr  bgcolor="white">
                    <td><!-- <input type="checkbox"  onclick="checkAll(this)"/> --></td>
                    <td>序号</td>
                    <td>姓名</td>
                    <td>性别</td>
                    <td>身份证号</td>
                    <td>入学时间</td>
                    <td>班级</td>
                    <td>宿舍号</td>
                    <td>是否欠费</td>
                    <td>欠费总额</td>
                    <td>缴费详情</td>
                    <td>&nbsp;</td>
                </tr>
                </thead>
                <tbody>
                <tr  bgcolor="white">
                    <td><!-- <input class="aaa" type="checkbox" /> --></td>
                    <td>1</td>
                    <td>王泳</td>
                    <td>男</td>
                    <td>130227198810096435</td>
                    <td>2016/04/05</td>
                    <td>1603A</td>
                    <td>207</td>
                    <td>是</td>
                    <td>5000.00元</td>
                    <td><input type="button" id="wwyy" value="详情" onclick="dianwo()"/></td>
                    <td>&nbsp;</td>
                </tr>
                <tr  bgcolor="white">
                    <td></td>
                    <td>2</td>
                    <td>刘宇杰</td>
                    <td>男</td>
                    <td>130227198810096435</td>
                     <td>2016/04/05</td>
                    <td>1604A</td>
                    <td>205</td>
                    <td>是</td>
                    <td>5000.00元</td>
                    <td><input type="button" id="" value="详情"/></td>
                    <td>&nbsp;</td>
                </tr>
                <tr  bgcolor="white">
                    <td></td>
                    <td>3</td>
                    <td>平雄力</td>
                    <td>男</td>
                    <td>130227198810096435</td>
                     <td>2016/04/05</td>
                    <td>1604A</td>
                    <td>207</td>
                    <td>是</td>
                    <td>5000.00元</td>
                    <td><input type="button" id="" value="详情"/></td>
                    <td>&nbsp;</td>
                </tr>
                <tr  bgcolor="white">
                    <td></td>
                    <td>4</td>
                    <td>赵栓宝</td>
                    <td>男</td>
                    <td>130227198810096435</td>
                     <td>2016/04/05</td>
                    <td>1604A</td>
                    <td>207</td>
                    <td>是</td>
                    <td>5000.00元</td>
                    <td><input type="button" id="" value="详情"/></td>
                    <td>&nbsp;</td>
                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table border="0" cellpadding="0" cellspacing="0"
                   class="table_border">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0"
                               class="table_padding">
                            <tr>
                                <td width="8%" class="font_left">数据:120条</td>
                                <td width="12" class="font_left">第</td>
                                <td width="375" class="font_left">
                                    <input name="textfield2" type="text" size="2" maxlength="4" /> /5页
                                </td>
                                <td width="478" class="font_right">
                                    <a href="">首页</a>
                                    <a href="">上一页</a>
                                    <a href="">下一页</a>
                                    <a href="">末页</a>
                                    <a href="">刷新</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </td>
    </tr>
</table>
<script type="text/javascript">


  
		 var l=$("#box_num_table2 :checkbox:not(:first)");
		var ll=$("[type=checkbox] :checkbox:not(:first):checked");
 		l.click(function(){
		
   alert(l.length)
      alert(ll.length)
	l.each(function(){
		if(!this.checked){
			$("#box_num_table2 input[type='checkbox']:first").prop('checked',false);
			return;
		}
		
		if(l.length==ll.length){
		$("#box_num_table2 input[type='checkbox']:first").prop('checked', true);
		}
		})
		
}) 	

function checkAll(obj){
    $("#box_num_table2 input[type='checkbox']").prop('checked', $(obj).prop('checked'));
}

/* $("#box_num_table2 :checkbox:not(:first)").click(function(){
	
	$("#box_num_table2 input[type='checkbox']:first").prop('checked',false);
}) */
function dianwo(id){
	<%-- location.href="<%=request.getContextPath()%>/stuMoneySelect/qfmain.jsp"; --%>
	location.href="<%=request.getContextPath()%>/stuMoneySelect/all.jsp";
}



</script>
